<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">

    </head>
    <body>
        <script>
            function one(name){
                return new Promise((resolve)=>{
                    resolve(name)
                    console.log(name)
                })
            }
            one("aa")

            async function two(){
                let name = await one("bb")
                console.log("ll"+name)
            }
            two()
        </script>
    </body>
</html>